
//分离条件
import {GETMOVIE} from '../constant/countContant'

//分离Action

//初始值
const init = {
  movieList:[]
}
export default function countReducer(prestate = init, action) {
  const { type, data } = action
  
  switch (type) {
    case GETMOVIE:
      return {
        ...prestate,
        movieList:data
      }
  }


  return prestate
}
